package cn.z2huo.demo.mybatis.plus.dao;

import cn.z2huo.demo.model.dataobject.user.UserDO;
import cn.z2huo.demo.mybatis.plus.mapper.CustomUserMapper;
import cn.z2huo.demo.mybatis.plus.model.dto.user.ListUserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author z2huo
 */
@Repository
public class UserDAO {

    @Autowired
    private CustomUserMapper customUserMapper;

    public List<UserDO> listValidUser() {
        return customUserMapper.listValidUser();
    }

    public List<UserDO> queryUser(UserDO userDO) {
        return customUserMapper.queryUser(userDO);
    }

    public List<UserDO> queryUser2(UserDO userDO) {
        return customUserMapper.queryUser2(userDO);
    }

    public List<UserDO> listUserByUserNameList(ListUserDTO listUserDTO) {
        return customUserMapper.listUserByUserNameList(listUserDTO);
    }

}
